package com.moss.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.moss.common.util.DateTimeUtil;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 创建者*/
    private String createBy;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /** 修改者*/
    private String updateBy;

    /** 修改时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /** 删除标记，1正常，0删除*/
    private Integer delFlag;

    /** query查询起始时间*/
    private String startTime;

    /** query查询结束时间*/
    private String endTime;

    private String day = DateTimeUtil.formatDate(LocalDate.now());
}
